<?php
  include_once('../classes/class.edit.machine.php');
    
  session_start();
    
  if (isset($_POST['editMachine']))
  { 
    $editMachine = new EditMachine();  
    if($editMachine->process())
    {
     echo "<script>loadMachines();</script>";   
     echo "<script>alert('Maquina modificada satisfactoriamente');</script>";
    }else
       {
        echo '<p class="error">';
        echo '<b>'.$editMachine->show_errors().'</b>'; 
        echo '</p>';    
       }
  }
?>
